function act() {
    switch (randomNum(1, 3)) {
        case 1:
            cm.dropSingleItem(4000136);
            break;
        case 2:
            cm.dropSingleItem(4000136);
            cm.dropSingleItem(4000136);
            break;
        case 3:
            var b = cm.getEventManager("副本_起源之塔");
            var e = b.getMapFactoryMap(cm.getMapId());
            var d = randomNum(1, 2) == 1 ? 3230102 : 4230104;
            for (var a = 0; a < randomNum(1, 10); a++) {
                var c = b.getMonster(d);
                e.spawnMonsterOnGroundBelow(c, cm.getReactor().getPosition())
            }
            break
    }
}

function randomNum(b, a) {
    switch (arguments.length) {
        case 1:
            return parseInt(Math.random() * b + 1, 10);
            break;
        case 2:
            return parseInt(Math.random() * (a - b + 1) + b, 10);
            break;
        default:
            return 0;
            break
    }
};